<?php
include("scripts/connection.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<script type="text/javascript">
function check()
{
	var l = document.getElementById("login").value;
	var p = document.getElementById("password").value;
		
	if(l && p)
	{
		document.forms["form"].submit();
	}	
}
</script>


<meta http-equiv="Content-Script-Type" content="text/javascript" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection, tv" />
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="css/style-ie.css" media="screen, projection, tv" /><![endif]-->
<link rel="stylesheet" href="css/style-print.css" type="text/css" media="print" />

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script type="text/JavaScript" src="script.js"></script>

<title>SDU</title>
</head>

<body>
<div id="wrapper">
		<?php
			include("header.php");
		?>

<div id="skip-menu"></div>
    <div id="content-box-left">
		<div id="content-box-left-in">
			<div class="paging" title="" align='center'>
				<div class="box">
						<div id="box-in">
							<div class="article">
								<h2 align='center'>Log in</h2><br>	
								<form action="scripts/login.php" method="get" name="form">                              
									<table align="center" cellpadding="10" cellspacing="10">
										<tr>
											<td>login :</td><td><input type="login" name="login" id="login"></td>
										</tr>
										<tr>
											<td>Password :</td><td><input type="password" name="password" id="password"></td>
										</tr>
										<tr align='center'>
											<td colspan="2" style='color:#FF0000;'>
												<?php if ($_GET['status'] == "wrong") echo "NO USER";?>
											</td>
										</tr>	
										<tr align='center'>
											<td>
											</td>
											<td><input type="button" onclick="check()" value="OK"/></td>
										</tr>
									</table>
								</form>
								</div>
							</div>
						</div>
						</div>
					</div>	
					
					</div>
						
				</div>
		</body>
</html>